package com.flyco.modules.ums.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.flyco.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 会员签到日志
 * @Author: flyco
 * @Date:   2021-06-16
 * @Version: V1.0
 */
@Data
@TableName("ums_member_sign_log")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ums_member_sign_log对象", description="会员签到日志")
public class UmsMemberSignLog {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**签到时间:年月日*/
	@Excel(name = "签到时间:年月日", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "签到时间:年月日")
	private Date signDate;
	/**签到url*/
	@Excel(name = "签到url", width = 15)
    @ApiModelProperty(value = "签到url")
	private String url;
	/**会员id*/
	@Excel(name = "会员id", width = 15)
    @ApiModelProperty(value = "会员id")
	private Long memberId;
	/**签到时间*/
	@Excel(name = "签到时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "签到时间")
	private Date signTime;
	/**签到奖励内容*/
	@Excel(name = "签到奖励内容", width = 15)
    @ApiModelProperty(value = "签到奖励内容")
	private String reward;
	/**签到奖励类型：coupon优惠券，lottery抽奖*/
	@Excel(name = "签到奖励类型：coupon优惠券，lottery抽奖", width = 15)
    @ApiModelProperty(value = "签到奖励类型：coupon优惠券，lottery抽奖")
	@Dict(dicCode = "sign_config_category")
	private String rewardType;
	/**优惠劵uuid，抽奖活动id*/
	@Excel(name = "优惠劵uuid，抽奖活动id", width = 15)
    @ApiModelProperty(value = "优惠劵uuid，抽奖活动id")
	private String rewardId;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
}
